package com.hzvictory.hotel_system.mapper;

import java.util.List;
import com.hzvictory.hotel_system.pojo.entity.Roomorder;
import org.apache.ibatis.annotations.Mapper;

/**
 * 房间订单Mapper接口
 *
 * @author ruoyi
 * @date 2025-07-23
 */
@Mapper
public interface RoomorderMapper
{
    /**
     * 查询房间订单
     *
     * @param id 房间订单主键
     * @return 房间订单
     */
    public Roomorder selectRoomorderById(Long id);

    /**
     * 查询房间订单列表
     *
     * @param roomorder 房间订单
     * @return 房间订单集合
     */
    public List<Roomorder> selectRoomorderList(Roomorder roomorder);

    /**
     * 根据用户id查询房间订单列表
     *
     * @param userId 用户id
     * @return 房间订单集合
     */
    public List<Roomorder> selectRoomorderByUserId(Long userId);
    /**
     * 新增房间订单
     *
     * @param roomorder 房间订单
     * @return 结果
     */
    public int insertRoomorder(Roomorder roomorder);

    /**
     * 修改房间订单
     *
     * @param roomorder 房间订单
     * @return 结果
     */
    public int updateRoomorder(Roomorder roomorder);
    public int updateRoomorderStatusById(Long id);
    /**
     * 删除房间订单
     *
     * @param id 房间订单主键
     * @return 结果
     */
    public int deleteRoomorderById(Long id);

    /**
     * 批量删除房间订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRoomorderByIds(Long[] ids);
}
